<template>
    <div style="height: 100%;">
      <navs></navs>
      <div class="main">
        <div class="center">
          <h1>史上最快的软件开发平台</h1>
          <div class="line"></div>
          <div class="cricle btn--shockwave" @click='toQuote'>下单</div>
        </div>
      </div>
      <footers></footers>
    </div>
</template>

<script>
    import navs from '../components/nav.vue'
    import footers from '../components/footer.vue'
    export default {
        name: '',
        data () {
            return {}
        },
        components: {
          navs,
          footers
        },
        created(){

        },
        methods: {
          toQuote() {
            this.$router.push('/quote')
          }
        },
        watch: {}
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .main{
    min-width:1000px;
    background: url("../assets/img/2.jpg") no-repeat top;
    height: calc(100% - 220px);
    background-size: cover;
    position: relative;
  }
  .main h1{
    text-align: center;
    font-family: FZLTXHK--GBK1-0;
    font-size: 42px;
    color: #fff;
  }
  .center{
    position: absolute;
    top: 30%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  .line{
    border-bottom: 3px solid #fff;
    width: 60%;
    margin: 40px auto;
  }
  .cricle{
    animation: shockwaveJump 1s ease-out infinite;
    width: 80px;
    height: 80px;
    background-color: white;
    margin: 0 auto;
    text-align: center;
    line-height: 80px;
    font-size: 16px;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
    border-radius:50%;
    cursor: pointer;
  }
  .cricle a {
    display: inline-block;
    width: 80px;
    height: 80px;
    color: #333;
  }
  .btn--shockwave:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 50%;
    -webkit-animation: shockwave 1s .5s ease-out infinite;
    animation: shockwave 1s .5s ease-out infinite;
  }
  .btn--shockwave:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 50%;
    -webkit-animation: shockwave 1s .65s ease-out infinite;
    animation: shockwave 1s .65s ease-out infinite;
  }

  @-webkit-keyframes shockwaveJump {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    40% {
      -webkit-transform: scale(1.08);
      transform: scale(1.08);
    }
    50% {
      -webkit-transform: scale(0.98);
      transform: scale(0.98);
    }
    55% {
      -webkit-transform: scale(1.02);
      transform: scale(1.02);
    }
    60% {
      -webkit-transform: scale(0.98);
      transform: scale(0.98);
    }
    100% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }

  @keyframes shockwaveJump {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    40% {
      -webkit-transform: scale(1.08);
      transform: scale(1.08);
    }
    50% {
      -webkit-transform: scale(0.98);
      transform: scale(0.98);
    }
    55% {
      -webkit-transform: scale(1.02);
      transform: scale(1.02);
    }
    60% {
      -webkit-transform: scale(0.98);
      transform: scale(0.98);
    }
    100% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }
  @-webkit-keyframes shockwave {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
      box-shadow: 0 0 2px rgba(255, 255, 255, 0.55), inset 0 0 1px rgba(255, 255, 255, 0.55);
    }
    95% {
      box-shadow: 0 0 50px transparent, inset 0 0 30px transparent;
    }
    100% {
      -webkit-transform: scale(2.25);
      transform: scale(2.25);
    }
  }
  @keyframes shockwave {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
      box-shadow: 0 0 2px rgba(255, 255, 255, 0.55), inset 0 0 1px rgba(255, 255, 255, 0.55);
    }
    95% {
      box-shadow: 0 0 50px transparent, inset 0 0 30px transparent;
    }
    100% {
      -webkit-transform: scale(2.25);
      transform: scale(2.25);
    }
  }
</style>
